const reactiveFns = []

//fn中放着响应式需要执行的一系列操作
function watchFn(fn) {
  reactiveFns.push(fn)
  fn()
}

const obj = {
  name: 'l'
}

watchFn(function () {
  let newName = obj.name
  console.log(obj.name)
})
watchFn(function () {
  console.log('my name is ' + obj.name)
})
